/* 子公司展示样式 - 垂直全屏布局 */
.subsidiaries-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2rem;
    color: #1a1a1a;
    font-weight: 700;
    margin-bottom: 15px;
}

.section-title p {
    font-size: 1.1rem;
    color: #666;
}

/* 子公司列表 */
.subsidiaries-list {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.company-item {
    width: 100%;
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 0.8s ease forwards;
}

.company-item:nth-child(1) { animation-delay: 0.1s; }
.company-item:nth-child(2) { animation-delay: 0.2s; }
.company-item:nth-child(3) { animation-delay: 0.3s; }
.company-item:nth-child(4) { animation-delay: 0.4s; }
.company-item:nth-child(n+5) { animation-delay: 0.5s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 布局1: 左图右文 */
.layout-1 .company-content {
    display: flex;
    align-items: center;
    gap: 60px;
    background: #fff;
    border-radius: 20px;
    padding: 60px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.layout-1 .company-image {
    position: relative;
    width: 400px;
    height: 300px;
    border-radius: 15px;
    overflow: hidden;
    flex-shrink: 0;
}

.layout-1 .company-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.layout-1 .company-number {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 60px;
    height: 60px;
    background: rgba(228, 30, 38, 0.9);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    font-weight: 700;
}

.layout-1 .company-info h2 {
    font-size: 1rem;
    color: #1a1a1a;
    margin-bottom: 20px;
    font-weight: 500;
}

.layout-1 .company-info p {
    color: #666;
    line-height: 1.8;
    font-size: 16px;
    margin-bottom: 30px;
}

/* 布局2: 左文右图 */
.layout-2 .company-content.reverse {
    display: flex;
    align-items: center;
    gap: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 60px;
    color: #fff;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3);
}

.layout-2 .company-info {
    flex: 1;
}

.layout-2 .company-image {
    position: relative;
    width: 400px;
    height: 300px;
    border-radius: 15px;
    overflow: hidden;
    flex-shrink: 0;
}

.layout-2 .company-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.layout-2 .company-number {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    backdrop-filter: blur(10px);
}

.layout-2 .company-info h2 {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 20px;
    font-weight: 500;
}

.layout-2 .company-info p {
    color: rgba(255,255,255,0.9);
    line-height: 1.8;
    font-size: 16px;
    margin-bottom: 30px;
}

/* 布局3: 居中大图 */
.layout-3 .company-content.centered {
    text-align: center;
}

.layout-3 .company-hero {
    position: relative;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 40px;
}

.layout-3 .company-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.layout-3 .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0,0,0,0.6), rgba(228, 30, 38, 0.6));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.layout-3 .company-number {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.layout-3 .hero-overlay h2 {
    font-size: 1.2rem;
    font-weight: 500;
}

.layout-3 .company-description {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.layout-3 .company-description p {
    color: #666;
    line-height: 1.8;
    font-size: 16px;
    margin-bottom: 30px;
}

/* 布局4: 卡片式 */
.layout-4 .company-content.card-style {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(255, 154, 158, 0.3);
}

.layout-4 .card-wrapper {
    display: flex;
    align-items: center;
    gap: 50px;
    background: rgba(255,255,255,0.9);
    border-radius: 15px;
    padding: 40px;
    backdrop-filter: blur(10px);
}

.layout-4 .card-image {
    width: 300px;
    height: 250px;
    border-radius: 15px;
    overflow: hidden;
    flex-shrink: 0;
}

.layout-4 .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.layout-4 .card-body {
    flex: 1;
    position: relative;
}

.layout-4 .company-number {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 60px;
    height: 60px;
    background: #ff9a9e;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(255, 154, 158, 0.4);
}

.layout-4 .card-body h2 {
    font-size: 2.2rem;
    color: #1a1a1a;
    margin-bottom: 20px;
    font-weight: 500;
}

.layout-4 .card-body p {
    color: #666;
    line-height: 1.8;
    font-size: 16px;
    margin-bottom: 30px;
}

/* 按钮样式 */
.btn-detail {
    display: inline-block;
    background: #e41e26;
    color: #fff;
    padding: 15px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(228, 30, 38, 0.3);
}

.btn-detail:hover {
    background: #c01a22;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(228, 30, 38, 0.4);
    color: #fff;
    text-decoration: none;
}

.layout-2 .btn-detail {
    background: rgba(255,255,255,0.2);
    color: #fff;
    backdrop-filter: blur(10px);
}

.layout-2 .btn-detail:hover {
    background: rgba(255,255,255,0.3);
    color: #fff;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .layout-1 .company-content,
    .layout-2 .company-content.reverse,
    .layout-4 .card-wrapper {
        gap: 40px;
        padding: 40px;
    }
    
    .layout-1 .company-image,
    .layout-2 .company-image,
    .layout-4 .card-image {
        width: 300px;
        height: 220px;
    }
}

@media (max-width: 768px) {
    .subsidiaries-list {
        gap: 50px;
    }
    
    .layout-1 .company-content,
    .layout-2 .company-content.reverse,
    .layout-4 .card-wrapper {
        flex-direction: column;
        text-align: center;
        padding: 30px;
        gap: 30px;
    }
    
    .layout-1 .company-image,
    .layout-2 .company-image,
    .layout-4 .card-image {
        width: 100%;
        height: 250px;
    }
    
    .layout-3 .company-hero {
        height: 300px;
    }
    
    .layout-3 .company-description {
        padding: 30px;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .layout-1 .company-info h2,
    .layout-2 .company-info h2,
    .layout-3 .hero-overlay h2,
    .layout-4 .card-body h2 {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .subsidiaries-section {
        padding: 60px 0;
    }
    
    .layout-1 .company-content,
    .layout-2 .company-content.reverse,
    .layout-4 .card-wrapper {
        padding: 20px;
    }
    
    .layout-3 .company-description {
        padding: 20px;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
}